Method, Computer, and System for an Operating System Independent Device Driver

ABSTRACT

A method for driving a device that enables using a device without using a conventional device driver that is dependent on the operating system of the computer. The method has a binary data conversion step which receives a mark-up language document written in a mark-up language and converts the mark-up language document to binary data composed of commands and data that can be processed by the device. The method also includes a binary data output step in which the converted binary data is output to the device.

CONTINUING APPLICATION DATA

This application is a continuation of, and claims priority under 35 U.S.C. §120 on, U.S. application Ser. No. 13/798,906, filed on Mar. 13, 2013, which is a continuation of, U.S. application Ser. No. 11/671,367, filed on Feb. 5, 2007, now U.S. Pat. No. 8,416,433. This application also claims priority under 35 U.S.C. §119 on Japanese patent application no. 2006-028021, filed on Feb. 6, 2006. The content of each such related application is incorporated by reference herein in its entirety.

BACKGROUND

1. Field of Invention

The present invention relates to a device driver processing method, a computer, and a processing system.

2. Description of Related Art

Printers, scanners, and other types of devices are commonly used with a computer. Device drivers for controlling each type of device must be installed to use each device. The device driver is generally installed on the computer to which the device is connected. See, for example, Japanese Unexamined Patent Appl. Pub. JP-A-2002-251347.

Such device drivers are typically specific to the operating system of the computer on which the device driver is installed. The user must install the device driver that matches the computer operating system. However, in addition to being difficult and confusing for users that are not familiar with computers, installing software also requires knowing the type and version of the operating system in order to ensure that the matching device driver is installed. This can be a burden for the user. Replacing one computer with another computer also requires reinstalling the device driver on the new computer, which requires repeating the same troublesome installation process. The device manufacturer must also provide multiple versions of the same device driver in order to enable using their products on different computer systems.

SUMMARY OF INVENTION

The present invention provides a system and method that enables using a device without using a device driver that is specific to the operating system of the computer.

A first aspect of the invention is a device driver processing method that is executed by a computer. The computer has a mark-up language parsing unit for interpreting a mark-up language document written in a mark-up language. The computer has a port control unit for controlling a communication port used for communicating with a device. The mark-up language parsing unit executes a binary data conversion step for converting the mark-up language document to binary data including process commands and data that can be processed by the device. The port control unit executes a binary data output step for outputting the converted binary data to the device.

A computer according to another aspect of the invention has a mark-up language parsing unit for interpreting a mark-up language document written in a mark-up language; and a port control unit for controlling a communication port used for communicating with a device. The mark-up language parsing unit has a conversion unit for converting a mark-up language document to binary data including process commands and data that can be processed by the device. The port control unit has an output unit for outputting the converted binary data to the device.

The computer receives a mark-up language document from an application. The computer converts the mark-up language document to binary data containing the process commands and data in a form that can be processed by the device, and outputs the binary data to the device. Devices can thus be used without needing to install a specific device driver, such as a printer driver, which is a specialized program conventionally required to control each device and can be difficult to install.

The mark-up language parsing unit can be an XML (eXtensible Markup Language) parser, for example, an XML parser is built into most web browser applications available today. The invention can therefore be used on any computer on which a common web browser application is installed. Even users that are not particularly familiar with computers can therefore easily install device drivers without being aware of the computer operating system.

The computer that executes the device driver processing method of the invention does not need to be directly connected to the device.

In a network system according to another aspect of the invention having a device, a computer connected to the device, and a server connected to the computer over a network. A mark-up language document produced by an application on the computer is sent to the server. The server converts the mark-up language document to binary data and returns the converted binary data to the computer. The computer outputs the binary data to the device. In this arrangement the server functions as the computer that executes the device driver processing method of the invention.

In another aspect of the invention the computer is built into the device, and the device converts the mark-up language document to binary data.

The device driver processing method of the invention can thus be rendered in various ways according to the operating environment of the device.

In this device driver processing method the computer has a storage unit for storing at least one set of information selected from a group including: output format information relating to the format of documents output to the device, model-dependent information that is specific to each device model and defines rules for converting the mark-up language document to processing commands and data that can be processed by the device, and port information relating to the communication port. The binary data conversion step includes a first conversion step for converting the input mark-up language document based on the output format information to a mark-up language document that conforms to the output format information. The binary data conversion step also includes a second conversion step for converting the converted mark-up language document to the binary data based on the model-dependent information. The binary data conversion step also includes a binary data output step that outputs the binary data to the device based on the port information.

The input mark-up language document is thus first converted to another mark-up language document that conforms to the output format information (stylesheet). The resulting mark-up language document is then converted to binary data containing the commands and data that can be processed by the device based on the model-dependent data. By converting the documents in steps errors that might occur during the conversion process can be more easily identified and resolved, thus improving data management and maintenance. In addition, the user can edit the output stylesheet as needed so that the input mark-up language document is output to the device in the format desired by the user.

Preferably, the output format information, model-dependent information, and port information are stored in separate storage units.

Data that is used for different purposes can thus be managed and used separately. More specifically, while the output format information may be edited by the user, the model-dependent information is supplied by the device manufacturer. The port information relates to the communication port to which the device is connected, and is unrelated to the output format stylesheet and model-dependent information. By thus separately managing these different types of information, the data can be updated more easily and maintained more efficiently.

In a further aspect of the invention, the port control unit further executes an event data acquisition step for getting event data that is composed of device output commands and is based on events that occurred within the device. The mark-up language parsing unit executes an event data conversion step for converting the acquired event data into a mark-up language document and outputting the mark-up language document.

By thus getting event data that is output by the device as statements describing errors and other events that occurred with the device, and converting the event data to a mark-up language document, which is a simple text file, the computer can easily know what errors occurred with the device and the operating status of the device, for example. By displaying the converted mark-up language document in a readable format, the event data can also be used for remotely managing the device.

Yet further preferably, the mark-up language document is written in XML, and the output format information and model-dependent information are written in XSL (eXtensible Stylesheet Language).

The device driver processing method of the invention can thus be implemented by using an XML document as the input data and writing the output format information (style sheet) and the model-dependent data in XSL.

Yet further preferably, the device is a printer. The invention can thus be applied to a printer, a device that typically has numerous configuration settings and requires a device driver that can be difficult to install, as the device controlled by the device driver processing method of the invention.

Another aspect of the invention is a system having the computer connected to a server over a network. The server has a model selection unit for generating model-dependent data that is information specific to each device, based on the device information sent by the computer. The server also has a port configuration unit for generating port information containing communication parameters for the communication port connecting the device to the computer. In addition, the server has a storage unit for storing model-dependent data for each device. The computer has a storage unit for storing the model-dependent data and port information sent from the server.

The computer acquires only the information specific to the device from the server based on the device information. The device information is entered using an input device disposed to the server. The user can easily generate the device-specific information on the server and send the device-specific information to the computer.

Further preferably, the computer is connected to the device, and the computer sends the device information from the device to the server. The device-specific information can thus be generated automatically and stored in the computer without user intervention.

Objects of the invention are also met in a printer processing method including: providing a printer with a mark-up language parsing unit interpreting mark-up language data written in a mark-up language; wherein: the printer receives first mark-up language data from point-of-sale, POS, application; the mark-up language parsing unit executes a first binary data conversion step for converting the first mark-up language data received from the POS application to first binary data executable by the printer, and executes a second binary data conversion step for converting second binary data generated by the printer to second mark-up language data; and the second mark-up language data is sent to the POS application.

It this method, it is presently preferred that the second binary data generated by the printer is printer status information, and that the POS application runs on a host device remote from the printer.

It is additionally preferred that the first mark-up language data is part of a first mark-up language document output from the POS application, and that the POS application executes a transaction process and generates transaction data. Furthermore, the mark-up language parsing unit executes a status information conversion step for converting the printer status information to the second mark-up language data based on model-dependent information that is specific to the printer and that defines a rule for converting the second binary data to the second mark-up language data. Also, when the second mark-up language data is sent to the POS application, the second mark-up language data is sent as a second mark-up language document to the POS application.

Additionally, the printer prints based on the generated transaction data, and the model-dependent information is one of multiple sets of model-dependent information, each corresponding to a different device model, and stored within a memory of the printer. It is therefore to be understood that the model-dependent information used in converting the printer status information to the second mark-up language data is selected from among the multiple sets of model-dependent information based on device-model information of the printer.

In the present method, the first and second mark-up language documents are XML documents. Alternatively, the first and second mark-up language documents may be HTML documents.

Preferably, the printer has multiple mechanisms including a cover, a paper cutter, and a transportation unit to transport a print-medium. In this case, the first binary data may include a mechanism control command that can be processed by the printer and that controls to at least one of the paper cutter and the transportation unit. Additionally, the mechanism control command may be based on model-dependent information that is specific to the printer and that defines a rule for converting the first mark-up language data to the mechanism control command. In this embodiment, the second binary data generated by the printer is status information related to at least one of the mechanisms, and the model-dependent information further preferably defines rules for converting the second binary data to the second mark-up language data.

Also in this method, at least one of the first binary data conversion step and the second binary data conversion step may be based on model information of the printer.

In the present method, if the first mark-up language data is part of a first mark-up language document that does not conform to output format information relating to a document format for documents output to the printer, then the first binary data conversion step may include a first conversion step for converting the first mark-up language document to a converted mark-up language document that conforms to output format information relating to the document format for documents output to the printer. The first binary data conversion step would also include a second conversion step for converting the converted mark-up language document to the first binary data.

Also in the present method, the output format information may be user-defined, and the first conversion step may include converting the first mark-up language document to an output format based on the output format information.

Objects of the present invention may also be achieved in a non-transitory computer readable medium containing instructions for performing the present method.

Objects of the present invention may also be met in a printer including a mark-up language parsing module configured to interpret mark-up language documents written in a mark-up language. Preferably, the printer is coupled to receive first mark-up language data from a Point-of-Sale, POS, application. In this case, the mark-up language parsing unit executes a first binary data conversion step for converting the first mark-up language data received from the POS application to first binary data executable by the printer, and executes a second binary data conversion step for converting second binary data generated by the printer to second mark-up language data. The printer then sends the second mark-up language data to the POS application.

The second binary data generated by the printer may be printer status information. In this case, it is preferred that the POS application execute a transaction process and generate transaction data. Also preferably, the first mark-up language data is part of a first mark-up language document output by the POS application, the mark-up language parsing unit further executes a status information conversion step for converting the printer status information to the second mark-up language data based on model-dependent information that is specific to the printer and that defines a rule for converting the second binary data to the second mark-up language data. Additionally, when the printer sends the second mark-up language data to the POS application, the second mark-up language data is sent as a second mark-up language document.

In this approach, the model-dependent information may preferably be one of multiple sets of model-dependent information, each corresponding to a different device model, and stored within a memory of the printer. The model-dependent information used in converting the printer status information to the second mark-up language data is selected from among the multiple sets of model-dependent information based on device-model information of the printer.

In the present printer, the POS application preferably runs on a host device external to the printer, and the printer further has multiple mechanisms including a cover, a paper cutter, and a transportation unit to transport a print-medium. In this case, the first binary data preferably includes a mechanism control command that can be processed by the printer and that controls to at least one of the paper cutter and the transportation unit.

In the presently preferred printer, the mechanism control command is based on model-dependent information that is specific to the printer and that defines a rule for converting the first mark-up language data to the mechanism control command, the second binary data generated by the printer is status information related to at least one of the mechanisms; and the model-dependent information further defines rules for converting the second binary data to the second mark-up language data.

Also in the present printer, the first mark-up language data is part of a first mark-up language document that does not conform to output format information relating to a document format for documents output to the printer. In this case, the first binary data conversion step includes: a first conversion step for converting the first mark-up language document to a converted mark-up language document that conforms to output format information relating to the document format for documents output to the printer, and a second conversion step for converting the converted mark-up language document to the first binary data.

Other objects and attainments together with a fuller understanding of the invention will become apparent and appreciated by referring to the following description and claims taken in conjunction with the accompanying drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a schematic block diagram of a network system;

FIG. 2 is a function block diagram of the network system;

FIG. 3A shows an example of the model selection window;

FIG. 3B shows an example of the port configuration window;

FIG. 4 is a flow chart of the process for converting an XML document to binary data;

FIG. 5 shows an example of the input data;

FIG. 6 describes an example of the input data after conversion;

FIG. 7 shows an example of the printer output;

FIG. 8 shows an example of the output stylesheet;

FIG. 9 shows an example of the model-dependent data;

FIG. 10 shows an example of the port configuration data; and

FIG. 11A and FIG. 11B describe the event data.

DESCRIPTION OF THE PREFERRED EMBODIMENTS

A preferred embodiment of a device driver processing method, a computer and a processing system according to the present invention is described below with reference to the accompanying figures. The device driver processing method of the invention enables a computer to function as a device driver by, for example, first acquiring a document written in a mark-up language that is output by an application program, converting this mark-up language document to binary data including data or control commands that can be processed by a device, and then controlling the output of the converted binary data to the device. The device driver processing method of the invention in the embodiment described below may be used on a network system including a server, a computer, and a printer.

FIG. 1 is a schematic block diagram of the network system 1 (referred to below as simply a “system”) according to an aspect of the invention. As shown in FIG. 1, this system 1 includes a computer (“PC” below) 10 on which is installed a device driver with the processing method of the invention, a printer 50 that is connected to the PC 10 as a device, and a server 60 that is connected to the PC 10 over a network such as the Internet or an intranet and supplies data to the PC 10. The PC 10 and printer 50 are connected by a communication cable.

The PC 10 may be a typical personal computer having one or more input devices 11, a display 12, a storage device 13, a communication interface 14, an input/output (I/O) interface 15, an internal bus 16, a CPU 17, ROM 18, and RAM 19. The PC 10 in an embodiment of the invention may be a POS terminal that is installed in a retail store, for example, and generates transaction data for printing sales receipts. The input devices 11 may include a mouse, a keyboard, a barcode reader, and a card reader. The PC 10 may acquire sales information from data that is input using the keyboard, the barcode reader, or the card reader, for example, and may present the product names and price information on the display 12. As shown in the figure, the communication interface 14 has a port driver 22 (port control unit) for controlling the communication port used for communication with the printer 50.

The storage device 13 may store a POS application 20 for running the transaction process and generating transaction data, and an XML parser 21, which is a general purpose program for interpreting XML documents. This XML parser 21 converts XML documents output from the POS application 20 to the commands and data that can be processed by the printer 50. More specifically, the CPU 17 executes the transaction processes by running the POS application 20, and controls the device driver process of the printer 50 by means of the XML parser 21.

The printer 50 operates as a receipt printer and includes a data communication unit 51 for data communication with the PC 10 through the communication interface 14, a transportation unit 52 for conveying receipt paper that is stored in a roll, a printing unit 53 for printing on the receipt paper synchronized to receipt paper transportation, a paper cutter unit 54 for cutting the printed portion of the receipt paper, a drive unit 55 for driving the other parts of the printer, and a control unit 56 that is connected to the other parts of the printer to control overall printer 50 operation.

The server 60 is arranged similarly to the PC 10 and may include an input device 61, a display 62, a storage device 63, a communication interface 64, an I/O interface 65, an internal bus 66, a CPU 67, ROM 68, and RAM 69. A model selection program 70 for specifying the model of printer 50 that is connected to the PC 10, and a port configuration program 71 for configuring the communication port for communication with the printer 50, are stored in the storage device 63 of the server 60. A model-dependent information database 72 for storing the model-dependent data 101 (described below with reference to FIG. 9) that is provided to the PC 10 is also stored in the storage device 63 of the server 60. The server 60 compiles and sends the model-dependent data 101 and port data 102 to the PC 10 by means of the model selection program 70 and port configuration program 71. The PC 10 thus receives and stores the model-dependent data 101 and port data 102. More specifically, the server 60 provides to the PC 10 the model-dependent data 101 for the device model specified by the model selection program 70 and the port data 102 (described further below with reference to FIG. 10) configured by the port configuration program 71.

The functional arrangement of the system 1 according to an embodiment of the invention is described next.

FIG. 2 is a function block diagram of the system 1. As shown in the figure, the server 60 has the model selection program 70 and the port configuration program 71 noted above, and supplies the model-dependent data 101 for the device model specified by the model selection program 70 and the port data 102 configured by the port configuration program 71 to the PC 10.

The PC 10 has a model-dependent data reception unit 30, a port data reception unit 31, a storage unit 32, an XML document input unit 33, a first conversion unit 34, a second conversion unit 35, a binary data output unit 36, an event data acquisition unit 37, and an event data conversion unit 38.

The model-dependent data reception unit 30 controls storing the model-dependent data 101 sent from the server 60 in the storage unit 32.

The port data reception unit 31 similarly controls storing the port data 102 sent from the server 60 in the storage unit 32.

The model-dependent data reception unit 30 and port data reception unit 31 are rendered by the communication interface 14 shown in FIG. 1.

The storage unit 32 is rendered by the storage device 13 shown in FIG. 1, and stores the output stylesheet 100, the model-dependent data 101, and the port data 102 in separate databases. The output stylesheet 100, the model-dependent data 101, and the port data 102 are described in further detail below.

The XML document input unit 33 outputs an XML document (XML document A in FIG. 2) received from the POS application 20 to the first conversion unit 34.

The first conversion unit 34 then converts this XML document (XML document A) based on the output stylesheet 100 in the storage unit 32 to an XML document (XML document B) that conforms to the output stylesheet 100.

The second conversion unit 35 converts the XML document (XML document B) conforming to the output stylesheet 100 to process commands or data strings that can be processed by the printer 50 based on the model-dependent data 101 in the storage unit 32, and then converts these process commands and data strings to binary data.

The binary data output unit 36 opens the communication port to the printer 50 based on the port data 102 in the storage unit 32, and outputs the converted binary data to the printer 50.

The event data acquisition unit 37 gets the event data (including data and status information that can vary according to errors and specific events such as the cover opening) output as commands from the printer 50.

The binary data output unit 36 and event data acquisition unit 37 are rendered by the port driver 22 (included in the communication interface 14) incorporated in the PC 10 as shown in FIG. 1.

The event data conversion unit 38 converts the acquired event data to an XML document (XML document C) and outputs the XML document to the POS application 20, for example. The XML document input unit 33, first conversion unit 34, second conversion unit 35, and event data conversion unit 38 are rendered by the XML parser 21 running on the PC 10 as shown in FIG. 1.

The output stylesheet 100, model-dependent data 101, and port data 102 are described in further detail below.

The output stylesheet 100 (see FIG. 8) defines the output format of XML documents output to the printer 50, and includes general configuration data such as the font and print layout. This information can be customized by the user so that the user can print XML documents in the desired printing format.

The model-dependent data 101 (see FIG. 9) defines the conversion rules for converting the XML document output from the POS application 20 to commands and data that can be processed by the printer 50, and more specifically includes initialization rules for initializing the printer 50, conversion rules for character attributes (such as the double height size, double width size, and underlining), and information about printer control commands such as paper feed and paper cutter commands, for example. This information is dependent upon the specifications and settings of the particular printer 50, and will therefore also differ according to the model of the printer 50. The model-dependent data 101 also includes information defining the conversion rules for converting the event data (binary data) acquired by the event data acquisition unit 37 to an XML document.

This embodiment of the invention uses an XML document as the input data as described above, and uses the XSL for the output stylesheet 100 and model-dependent data 101 (see FIG. 8 and FIG. 9). Settings related to the communication port used to communicate with the printer 50 are defined in the port data 102 (see FIG. 10), and include the port type and data transfer rate (an example of settings for a serial connection are shown in FIG. 10).

The processes whereby the PC 10 configures the device driver for the printer 50 are described next, starting with the process whereby the PC 10 gets the model-dependent data 101 and port data 102 from the server 60.

FIG. 3A shows an example of the model selection window D1 displayed by the server 60 for setting the model-dependent data 101. FIG. 3B shows an example of the port configuration window D2 displayed by the server 60 for setting the port data 102.

As shown in FIG. 3A, the model of printer 50 that is connected to the PC 10 is selected by the user from the model selection window D1 using a keyboard, mouse, touch screen panel, or other input device not shown. After the printer 50 is selected and the download command is asserted, the model-dependent data 101 for the selected model is generated by the model selection program 70 and then downloaded from the server 60 to the PC 10.

More specifically, the model selection program 70 of the server 60 reads the model-dependent data 101 for the model selected in the model selection window D1 from the model-dependent data database 72 and sends the model-dependent data 101 to the PC 10. The “Show Details” control shown in FIG. 3A is linked to a screen for displaying items in the model-dependent data 101, and this screen can be used by the user to confirm and edit the settings of the model-dependent data 101.

As shown in FIG. 3B, the user configures the port data 102 by setting the communication port parameters (including the type of port, the data transfer rate, bit length, and stop bit) of the printer 50 in the port configuration window D2. When the port data 102 download command is then asserted, port data 102 conforming to the parameter settings in the port configuration window D2 is generated by the port configuration program 71 and then downloaded from the server 60 to the PC 10. More specifically, the port configuration program 71 of the server 60 generates the port data 102 to reflect the settings in the port configuration window D2 and then sends the port data 102 to the PC 10.

To get the model-dependent data 101 the user manually accesses the server 60, selects the model and communication port settings, and then downloads the information to the PC 10 in this example, but the PC 10 could execute this process automatically (internally). More specifically, when the printer 50 is connected to the PC 10 or initialized, the PC 10 gets the model and port data from the printer 50 and sends the data to the server 60. The server 60 then runs the model selection program 70 and port configuration program 71 to generate and return the model-dependent data 101 and port data 102 based on the received information to the PC 10.

A process whereby the PC 10 outputs an XML document output from the POS application 20 to the printer 50 by referencing the output stylesheet 100, model-dependent data 101, and port data 102 is described next with reference to FIG. 4.

The following description assumes that the output stylesheet 100 is already stored in the PC 10 at the beginning of this process, but the output stylesheet 100 can obviously be downloaded from the server 60 in the same way as the model-dependent data 101 and port data 102.

FIG. 4 is a flow chart of the XML document conversion process that is executed by the PC 10. As shown in the figure the XML document input unit 33 inputs the XML document A output from the POS application 20 as the input data to the first conversion unit 34 (S01). The first conversion unit 34 then converts the input XML document A according to the output stylesheet 100 to an XML document B conforming to the output stylesheet 100 (S02).

The second conversion unit 35 then converts the XML document B conforming to the output stylesheet 100 to the commands and data strings that can be processed by the printer 50 based on the model-dependent data 101 (S03), and then converts these commands and data strings to binary data (S04). The binary data output unit 36 then references the port data 102 to output the converted binary data to the printer 50 (S05).

This process is further described below with reference to FIG. 5 to FIG. 10.

FIG. 5 shows an example of the XML document A used as the input data. The input data includes product name information such as “radish,” “strawberries,” and “peaches” and price information such as 150, 500, and 200 for each product.

FIG. 8 shows an example of the output stylesheet 100 written in XSL.

The first conversion unit 34 converts the XML document A shown in FIG. 5 based on the output stylesheet 100 shown in FIG. 8 to an XML document B conforming to the output stylesheet 100.

FIG. 6 shows the XML document B converted from the XML document A shown in FIG. 5 based on the output stylesheet 100 shown in FIG. 8.

As shown particularly by the shaded parts in FIG. 6, the name of each product is underlined in this XML document B as specified by the output stylesheet 100 shown in FIG. 8.

The second conversion unit 35 then converts the XML document B shown in FIG. 6 based on the model-dependent data 101 shown in FIG. 9 to the commands and data strings that can be processed by the printer 50, and then converts these commands and data strings to binary data.

The binary data output unit 36 then references the port data 102 shown in FIG. 10 to communicate with the printer 50 and output the converted binary data to the printer 50. An example of the output printed by the printer 50 based on this binary data is shown in FIG. 7. As shown in the figure, each product name and price is output and the product name is underlined based on the XML document A received as the input data (FIG. 5) and the output stylesheet 100 shown in FIG. 8.

The process whereby the event information (including data and status information that can vary according to errors and specific events such as the cover opening) is output as commands from the printer 50 are acquired, converted to an XML document, and output is described next. As described above, this process is executed by the event data acquisition unit 37 and event data conversion unit 38 (see FIG. 2). The event data acquisition unit 37 gets the event data (binary data) output from the printer 50, and the event data conversion unit 38 converts the event data to an XML document by referring to the model-dependent data 101 and outputs the XML document to the POS application 20.

FIG. 11A and FIG. 11B show an example of the tag definitions used in the XML document converted from the event data. FIG. 11A shows an example in which all event data content is contained between <event> tags (shaded in the figure). As shown in FIG. 11B, the attributes describing an event include the <name> of the printer, the <source> where the event occurred, and a <description> of the event. The content of each attribute follows the attribute tag.

By outputting this XML document to the POS application 20, the POS application 20 can know the operating status of the printer 50 (has an error occurred or not) and selected status information (such as whether the cover is open or closed, and whether paper is loaded), and can manage the printer 50 remotely. Furthermore, as a result of the POS application 20 sending the XML document to the server 60, the server 60 (central processing terminal) can manage printers 50 installed in multiple stores, for example, and the printers 50 can be maintained more efficiently.

The event data acquisition unit 37 is rendered by the port driver 22 of the PC 10, and the port driver 22 functions to control and monitor the communication port for communicating with the printer 50. The event data acquisition unit 37 can therefore also be arranged to get event data for the communication port of the printer 50 (such as information reporting failure to open the port). This enables the POS application 20 to remotely manage both the printer 50 and communication between the PC 10 and printer 50, and enables centralized control by the server 60 (central processing terminal).

As described above, when a printer or other peripheral device is used, the device driver processing method of the invention enables using the device by simply installing an XML parser 21 and port driver 22 to the computer and storing an output stylesheet 100, model-dependent data 101, and port data 102.

The XML parser 21 is part of a typical web browser application, and by using a PC that has an installed web browser, the user does not need to install any special software in order to use a device. As a result, a conventional device driver that is a dedicated software program for controlling a device does not need to be installed to match the operating system of the computer. Casual computer users can therefore easily use a printer (a device) without knowing anything about the computer environment, including the type and version of the operating system. The job of replacing a computer that requires installing new device drivers can also be simplified.

The job of the manufacturer that provides the device is also made easier because it is not necessary to provide a conventional device driver such as a printer driver that is dependent on the computer operating system. More particularly, a conventional printer driver must be programmed according to operating system of the computer on which the printer driver will be installed, but the invention makes this programming unnecessary and therefore greatly reduces development costs.

Furthermore, when firmware for controlling a printer 50 is installed on the printer 50, the firmware settings and reference values can be stored in the model-dependent data 101, and the firmware can get and process the required information by referencing the model-dependent data 101. The firmware can therefore be updated by simply updating the model-dependent data 101.

Changes in the output format, the model of printer 50, and communication port settings can also be handled by simply changing the output stylesheet 100, the model-dependent data 101, and the port data 102. More specifically, the invention eliminates the need of the prior art to change the device driver program. Furthermore, if any of the information needs changing, the user can change the output format, change the printer 50 model, and change the communication port settings in real time.

Furthermore, model-dependent data 101 for a plurality of different devices can be stored on the PC 10. In this case the user can choose the types of devices to use to read the model-dependent data 101 for the selected device as needed. If multiple devices are connected to the PC 10, each of the devices can be used by simply storing the model-dependent data 101 for each device on the PC 10.

The PC 10 is described above as the computer that executes the method of the invention in a system 1 that includes a server 60, a PC 10, and a printer 50, but the computer that executes the method of the invention is not limited to the PC 10. The computer may be a computing device that comprises a processing unit and a communication port. The server 60 could be the computer that executes the method of the invention. In this case the XML parser 21 and port driver 22 are installed to the server 60, the server 60 receives the XML documents from the PC 10, converts the XML documents to binary data, and outputs the binary data through the PC 10 to the printer 50.

If the POS application 20 runs on the server 60 instead of the PC 10, the converted binary data can be output directly to the printer 50 instead of through the PC 10.

If the server 60 is the computer that implements the invention, the server 60 gets model information relating to the model of each device, and reads the model-dependent data 101 for the acquired device models. The model information can be acquired by manually entering the data using an input device 61 of the server 60, or the server 60 can access each device to automatically (internally) read the device information. The port data 102 can also be set using the input device 61 of the server 60.

Furthermore, by incorporating the XML parser 21 in the printer 50 and storing the output stylesheet 100, model-dependent data 101, and port data 102 in memory in the printer 50, the printer 50 can be used as the computer that implements the invention.

In this case the XML document output from the POS application 20 is input to the printer 50, the printer 50 internally converts the received (input) XML document to binary data, and outputs the binary data to a buffer, for example.

The invention can thus be implemented using a variety of different hardware configurations, and the device driver processing method of the invention can be executed in various ways according to the operating environment of the printer 50.

A printer 50 is used by way of example as a device in this embodiment of the invention, but the invention is not limited to printers 50 and can be applied to other devices such as scanner, displays, and data readers.

The output stylesheet 100, model-dependent data 101, and port data 102 is stored for each device type (such as printer or scanner), and this data is used selectively according to the type of device to which the data is output.

Furthermore, the invention is described using an XML document by way of example as the input data, but the invention is not limited to XML documents and can use documents written in other mark-up languages, including HTML (HyperText Markup Language) and SGML (Standard Generalized Markup Language), as the input data.

Furthermore, a POS application 20 is used by way of example as the application that outputs the input data (XML document), but the type of application that can be used is not limited to any particular type.

The invention is also not limited to a system 1 as described above, and the hardware arrangement and process steps can be varied in many ways without departing from the scope of the accompanying claims.

In accordance with further aspects of the invention, any of the above-described methods or steps thereof may be embodied in a program of instructions (e.g., software) which may be stored on a computer readable medium, or conveyed to, a computer or other processor-controlled device for execution. Alternatively, any of the methods or steps thereof may be implemented using functionally equivalent hardware (e.g., application specific integrated circuit (ASIC), digital signal processing circuitry, etc.) or a combination of software and hardware.

Although the present invention has been described in connection with the preferred embodiments thereof with reference to the accompanying drawings, it is to be noted that various changes and modifications will be apparent to those skilled in the art. Such changes and modifications are to be understood as included within the scope of the present invention as defined by the appended claims, unless they depart therefrom. 

What is claimed is:
 1. A printer processing method comprising: providing a printer with a mark-up language parsing unit interpreting mark-up language data written in a mark-up language; wherein: the printer receives first mark-up language data from point-of-sale, POS, application; the mark-up language parsing unit executes a first binary data conversion step for converting the first mark-up language data received from the POS application to first binary data executable by the printer, and executes a second binary data conversion step for converting second binary data generated by the printer to second mark-up language data; and the second mark-up language data is sent to the POS application.
 2. The printer processing method of claim 1, wherein: the second binary data generated by the printer is printer status information; the POS application runs on a host device remote from the printer.
 3. The printer processing method of claim 2, wherein: the first mark-up language data is part of a first mark-up language document output from the POS application, said POS application executing a transaction process and generating transaction data; the mark-up language parsing unit further executes a status information conversion step for converting the printer status information to the second mark-up language data based on model-dependent information that is specific to the printer and that defines a rule for converting the second binary data to the second mark-up language data; and when the second mark-up language data is sent to the POS application, the second mark-up language data is sent as a second mark-up language document to the POS application.
 4. The printer processing method of claim 3, wherein: the printer prints based on the generated transaction data; the model-dependent information is one of multiple sets of model-dependent information, each corresponding to a different device model, and stored within a memory of the printer; and the model-dependent information used in converting the printer status information to the second mark-up language data is selected from among the multiple sets of model-dependent information based on device-model information of the printer.
 5. The printer processing method of claim 3, wherein the first and second mark-up language documents are XML documents.
 6. The printer processing method of claim 3, wherein the first and second mark-up language documents are HTML documents.
 7. The printer processing method of claim 1, wherein: said printer further has multiple mechanisms including a cover, a paper cutter, and a transportation unit to transport a print-medium; and said first binary data includes a mechanism control command that can be processed by the printer and that controls to at least one of the paper cutter and the transportation unit.
 8. The printer processing method of claim 7, wherein the mechanism control command is based on model-dependent information that is specific to the printer and that defines a rule for converting the first mark-up language data to the mechanism control command.
 9. The printer processing method of claim 8, wherein: the second binary data generated by the printer is status information related to at least one of the mechanisms; and the model-dependent information further defines rules for converting the second binary data to the second mark-up language data.
 10. The printer processing method of claim 1, wherein at least one of the first binary data conversion step and the second binary data conversion step is based on model information of the printer.
 11. The printer processing method of claim 1, wherein: the first mark-up language data is part of a first mark-up language document that does not conform to output format information relating to a document format for documents output to the printer; the first binary data conversion step includes: a first conversion step for converting the first mark-up language document to a converted mark-up language document that conforms to output format information relating to the document format for documents output to the printer, and a second conversion step for converting the converted mark-up language document to the first binary data.
 12. The printer processing method of claim 11, wherein: the output format information is user-defined; and the first conversion step includes converting the first mark-up language document to an output format based on the output format information.
 13. A non-transitory computer readable medium containing instructions for performing the method described in claim
 1. 14. A printer comprising: a mark-up language parsing module configured to interpret mark-up language documents written in a mark-up language; the printer being coupled to receive first mark-up language data from a Point-of-Sale, POS, application; wherein: the mark-up language parsing unit executes a first binary data conversion step for converting the first mark-up language data received from the POS application to first binary data executable by the printer, and executes a second binary data conversion step for converting second binary data generated by the printer to second mark-up language data; and the printer sends the second mark-up language data to the POS application.
 15. The printer of claim 14, wherein the second binary data generated by the printer is printer status information.
 16. The printer of claim 15, wherein: said POS application executes a transaction process and generates transaction data; the first mark-up language data is part of a first mark-up language document output by the POS application; the mark-up language parsing unit further executes a status information conversion step for converting the printer status information to the second mark-up language data based on model-dependent information that is specific to the printer and that defines a rule for converting the second binary data to the second mark-up language data; and when the printer sends the second mark-up language data to the POS application, the second mark-up language data is sent as a second mark-up language document.
 17. The printer processing method of claim 16, wherein: the model-dependent information is one of multiple sets of model-dependent information, each corresponding to a different device model, and stored within a memory of the printer; and the model-dependent information used in converting the printer status information to the second mark-up language data is selected from among the multiple sets of model-dependent information based on device-model information of the printer.
 18. The printer of claim 14, wherein: The POS application runs on a host device external to the printer; the printer further has multiple mechanisms including a cover, a paper cutter, and a transportation unit to transport a print-medium; and said first binary data includes a mechanism control command that can be processed by the printer and that controls to at least one of the paper cutter and the transportation unit.
 19. The printer of claim 18, wherein: the mechanism control command is based on model-dependent information that is specific to the printer and that defines a rule for converting the first mark-up language data to the mechanism control command; the second binary data generated by the printer is status information related to at least one of the mechanisms; and the model-dependent information further defines rules for converting the second binary data to the second mark-up language data.
 20. The printer of claim 14, wherein: the first mark-up language data is part of a first mark-up language document that does not conform to output format information relating to a document format for documents output to the printer; the first binary data conversion step includes: a first conversion step for converting the first mark-up language document to a converted mark-up language document that conforms to output format information relating to the document format for documents output to the printer, and a second conversion step for converting the converted mark-up language document to the first binary data. 